interface Foo {
  name: string;
  greet(): string;
}

interface Foo { name: string }

type Bar = {
  name: string;
  greet(): string;
}

type Bar = { name: string }

type FooBar = { name: string; greet(): string }